package site.lanmushan.framework.datascope.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import site.lanmushan.framework.datascope.interceptor.mysql.*;
import site.lanmushan.framework.datascope.support.IDataScopeHandler;
import site.lanmushan.framework.datascope.support.DataScopeConditionProvider;

/**
 * @author Administrator
 */
@Configuration
//@Import({MysqlSelectSlashDataControl.class,
//        MysqlUpdateSlashDataControl.class,
//        MysqlDeleteSlashDataControl.class,
//        DataScopeAspect.class})
public class MysqlDataScopeConfig implements DataScopeConfig {

    @Bean
    @Override
    public IDataScopeHandler dataScopeHandler() {
      //  MysqlDataScopeHandler mysqlDataScopeHandler = new MysqlDataScopeHandler();
   //     return mysqlDataScopeHandler;
        return null;
    }

    @Bean
    @Override
    public DataScopeConditionProvider dataScopeConditionProvider() {
        return new MysqlDataScopeRuleConditionProvider();
    }

}
